package pvz.b;

import java.awt.Image;

import org.standard.Utility;

public class ZombieImage {
	private int posX;
	private int posY;
	private int width;
	private int height;
	private Image attackimg;
	private Image walkimg;
	private int speed;
	private int health;

	public ZombieImage(String name) {
		String attackfile = "pvz/images/Zombies/" + name + "/" + name
				+ "Attack.gif";
		String walkfile = "pvz/images/Zombies/" + name + "/" + name + ".gif";
		this.attackimg = Utility.loadImage(attackfile);
		this.walkimg = Utility.loadImage(walkfile);
		this.width = this.attackimg.getWidth(null);
		this.height = this.attackimg.getHeight(null);
	}

	public ZombieImage(String name, int x, int y) {
		this(name);
		this.setPosX(x);
		this.setPosY(y);
	}

	public int getPosX() {
		return posX;
	}

	public void setPosX(int posX) {
		this.posX = posX;
	}

	public int getPosY() {
		return posY;
	}

	public void setPosY(int posY) {
		this.posY = posY;
	}

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	public Image getAttackimg() {
		return attackimg;
	}

	public void setAttackimg(Image attackimg) {
		this.attackimg = attackimg;
	}

	public Image getWalkimg() {
		return walkimg;
	}

	public void setWalkimg(Image walkimg) {
		this.walkimg = walkimg;
	}

	public void setHealth(int health) {
		this.health = health;
	}

	public int getHealth() {
		return health;
	}

	public void setSpeed(int speed) {
		this.speed = speed;
	}

	public int getSpeed() {
		return speed;
	}
}
